<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ContactValidator
 *
 * @author Moon
 */
class ContactRefValidator extends CValidator{
    //put your code here

    public $type = 'number';
    
    public function validateAttribute($model,$attribute)
    {
        $value = $model->$attribute;
        if($this->type == 'number') {

        }
    }
}
?>
